<?php

use Jialeo\LaravelSchemaExtend\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateRetryLoanRequestHistoriesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('retry_loan_request_histories', function (Blueprint $table) {
            $table->comment = '重试授信历史表';
            $table->increments('id');
            $table->unsignedInteger('loan_requests_id')->comment('授信id');
            $table->string('old_credit_id')->get('旧授信id');
            $table->string('old_trans_id')->comment('旧流水号');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('retry_loan_request_histories');
    }
}
